package com.lujianfei.filesend.ui.tab

import android.view.View
import com.lujianfei.filesend.R
import com.lujianfei.filesend.base.BaseFragment
import com.lujianfei.filesend.databinding.FragmentTabConnectBinding
import com.lujianfei.filesend.ui.search.SearchDeviceActivity
import com.lujianfei.filesend.ui.server.ServerActivity


/**
 * Author: lujianfei
 * Date: 2023/11/1 9:35
 * Description: 服务/连接
 */

class TabConnectFragment: BaseFragment<FragmentTabConnectBinding>() {
    override fun resourceId() = R.layout.fragment_tab_connect

    override fun initView() {
    }

    override fun initData() {
    }

    override fun initEvent() {
        binding?.onSearchClientClick = View.OnClickListener {
            SearchDeviceActivity.start(context)
        }
        binding?.onStartServerClick = View.OnClickListener {
            ServerActivity.start(context)
        }
    }
}